#include<iostream>
#include<string>
#include<cstdlib>
#include<sys/types.h>
#include<signal.h>
#include <unistd.h>
using namespace std;
static void Usage(string proc)
{
    cout<<"Usage:\r\n\t"<<proc<<" signumber processid "<< endl;
}

int main(int argc,char*argv[])
{
    //raisec测试

    // cout<<"正在运行中。。。"<<endl;
    // sleep(1);
    // raise(8);

    //abort测试
    //abort();
    
    //kill测试
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }

    int signumber = atoi(argv[1]);
    int processid = atoi(argv[2]);

    kill(processid,signumber);
    return 0;
}